package com.springboot.cloud.common.web.exception;

import com.springboot.cloud.common.web.entity.enums.CustomHttpStatus;

public class NoLoginException extends BaseException{
    private static final String ERROR_MESSAGE = "请先登录";

    public NoLoginException() {
        super("未登录错误");
        super.setStatus(CustomHttpStatus.USER_NOT_LOGIN);
        super.setError(ERROR_MESSAGE);
    }

    public NoLoginException(String message) {
        super(message);
        super.setStatus(CustomHttpStatus.USER_NOT_LOGIN);
        super.setError(ERROR_MESSAGE);
    }
}
